var My = {
	init: function(footer){
		footer && $("body").append(Init.getFootHtml);//是否需要页脚
		$(".rightBtn.set").on("click", function(){
			Main.jump("my_set.html");
		});
	},
	myOrderInit: function(){
		$("body").on("click",".my_order_sin",function(){
			Main.jump("my_order_detail.html");
		});
		$("body").on("click",".myorder_btm_btn.comm",function(e){
			e.stopPropagation();
			Main.jump("my_order_comm.html");
		});
		$("body").on("click",".myorder_btm_btn.pay",function(e){
			e.stopPropagation();
			Main.jump("my_order_pay.html");
		});
		$("body").on("click",".im_del", function(e){
			e.stopPropagation();
			$(this).parents(".my_order_sin").remove();
		});
	},
	myCommInit: function(){
		$(".add_sin_img").on("click", function(){
			$(".add_img_list").prepend('<li class="im_addImg ub-img-bg add_sin_img" style="background-image:url(../dist/images/banner.png)"></li>');
		});
		$(".my_comm_stars").on("click",function(e){
			var W = $(this).outerWidth(),innerW = e.offsetX;
			var percent = Math.round(innerW/W*10)*10;
			$(".my_comm_sinner").css("width", percent + "%");
		});
	},
	orderPayInit: function(){
		$("body").on("click", ".pay_btm_sin",function(){
			$(this).addClass("sel").siblings().removeClass("sel");
		});
	},
	addressAddInit: function(){
		$(".rightBtn.add").click(function(){
			//to do...  
			alert("添加成功");
			history.go(-1);
		});
	},
	orderDetailInit: function(){
		$(".rightBtn.cancel").on("click", function(){
			history.go(-1);
		});
		$(".dtl_btn.comm").on("click", function(){
			Main.jump('my_order_comm.html');
		});
	}
}


